package cn.edu.zut.cs.Model;

import org.springframework.stereotype.Component;

@Component
public class Patient {
    private String pno;
    private String name;
    private String sex;
    private int age;
    private String status;
    private String wardId;
    private int bedId;
    private String familyPhone;

    public String getPno() {
        return pno;
    }

    public void setPno(String pno) {
        this.pno = pno;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getWardId() {
        return wardId;
    }

    public void setWardId(String wardId) {
        this.wardId = wardId;
    }

    public int getBedId() {
        return bedId;
    }

    public void setBedId(int bedId) {
        this.bedId = bedId;
    }

    public String getFamilyPhone() {
        return familyPhone;
    }

    public void setFamilyPhone(String familyPhone) {
        this.familyPhone = familyPhone;
    }

    @Override
    public String toString() {
        return "Patient{" +
                "pno='" + pno + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", condition='" + status + '\'' +
                ", wardId='" + wardId + '\'' +
                ", bedId=" + bedId +
                ", familyPhone='" + familyPhone + '\'' +
                '}';
    }
}
